#pragma  once
#ifndef _LINKED_GLOABL_DEFINES_H_
#define _LINKED_GLOABL_DEFINES_H_

#ifdef WIN32
#include <WinSock2.h>
#include <WS2tcpip.h>
#pragma comment(lib, "Ws2_32.lib")
#endif


#define LinkED_MSG_UPDATE_MAIN_PAGE (WM_USER + 1)

typedef struct tagClientInfo
{
    SOCKET sock;
    HANDLE RecvDataThread;

    tagClientInfo()
    {
        sock = INVALID_SOCKET;
        RecvDataThread = NULL;
    }

}ClientInfo, *LPClientInfo;

enum LinkED_MSG_TYPE
{   
    LBTN_CLICKED = 0, 
    LBTN_DOUBLE_CLICKED = 1, 
    RBTN_CLICKED = 2, 
    MOUSE_MOVE = 3,
    CENTER_SCROLL = 4,
    LEFT_DRAG = 5,
    SHOW_DESKTOP = 6,
    OPEN_START_MENU = 7,
    OPEN_COMPUTER = 8,
    OPEN_IE_BROWSER = 9,
    OPEN_CACULATOR = 10,
    OPEN_MUSIC_PALYER = 11,
    OPEN_CONTROL_PANEL = 12,
    OPEN_TECENT_QQ = 13,
    OPEN_RECYCLE_BIN = 14,
    OPEN_MY_DOCS = 15
};

typedef struct tagSreenPos
{
    int x;
    int y;
    LinkED_MSG_TYPE msg_type;

    tagSreenPos()
    {
        x = 0;
        y = 0;
        msg_type = MOUSE_MOVE;
    }
}ScreenPos, *LPScreenPos;

#define  MAX_CLIENT_NUM 10

#endif